package com.example.flex;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author 93879
 */
@NacosPropertySources({
        @NacosPropertySource(dataId = "redis.yml",autoRefreshed = true),
        @NacosPropertySource(dataId = "mysql.yml",autoRefreshed = true),
        @NacosPropertySource(dataId = "freemarker.yml",autoRefreshed = true),
        @NacosPropertySource(dataId = "mybatis-flex.yml",autoRefreshed = true),
        @NacosPropertySource(dataId = "logging.yml",autoRefreshed = true),
        @NacosPropertySource(dataId = "swagger.properties",autoRefreshed = true),
})
@EnableDiscoveryClient
@MapperScan("com.example.flex.mapper")
@SpringBootApplication
public class FlexApplication {

    public static void main(String[] args) {
        SpringApplication.run(FlexApplication.class, args);
        System.out.println("swagger接口文档地址：http://localhost:10010/swagger-ui/index.html");
    }
}

